//
//  XLNetworkingConfig.h
//  MPTinyAppLearn
//
//  Created by xl on 2019/10/29.
//  Copyright © 2019 xl. All rights reserved.
//

#ifndef XLNetworkingConfig_h
#define XLNetworkingConfig_h

#define XLNetworkTokenDisableCode 401

typedef NS_ENUM(NSUInteger, XLServerRequestsStatus) {
    XLServerRequestsStatusFail              = 0,        // 请求失败
    XLServerRequestsStatusSuccess           = 1,        // 请求成功
    XLServerRequestsStatusNotConnected      = 2,        // 无法连接
    XLServerRequestsStatusconnectedTimeOut  = 3         // 请求超时
};

typedef NS_ENUM(NSInteger, XLNetworkReachabilityStatus) {
    XLNetworkReachabilityStatusUnkonw             = -1,   // 未知网络
    XLNetworkReachabilityStatusNotReachable       = 0,    // 网络无法链接
    XLNetworkReachabilityStatusReachableViaWWAN   = 1,    // 2，3，4G
    XLNetworkReachabilityStatusReachableViaWiFi   = 2,     // WIFI
};

typedef NS_ENUM(NSUInteger, XLHttpMedthType) {
    XLHttpMedthTypeGET              = 0,                // GET请求
    XLHttpMedthTypePOST             = 1,                // POST请求
    XLHttpMedthTypeUploadImage      = 2,                // 上传图片
    XLHttpMedthTypeUploadFile       = 3,                // 上传文件
    XLHttpMedthTypeDownload         = 4,                 // 下载
    XLHttpMedthTypeUploadImageData  = 5,                // 上传图片Data格式
    XLHttpMedthTypeUploadFileData   = 6,                // 上传文件Data格式
};

#endif /* XLNetworkingConfig_h */
